home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / e34.zip / E!FONT.DOC < prev    next >
Text File  |  1988-11-01  |  5KB  |  125 lines

  1.  
  2.  
  3.                        ┌────────────────────────────┐
  4.                        │E!FONT - EGA/VGA font loader│
  5.                        └────────────────────────────┘
  6.  
  7.                     (c)  Patrick Philippot - 1988,89,90
  8.  
  9.                                 version 3.4
  10.  
  11.  
  12.            E!FONT  is  a  simple,  universal  and non resident font loader.
  13.       It  will  replace default BIOS fonts on your EGA / VGA display. These
  14.       new  fonts  are  contained  in  a  font  file. Font file structure is
  15.       described below.
  16.  
  17.            Four  25 lines font files are distributed with E!. E!FNT251.EGA,
  18.       E!FNT252.EGA, E!FNT251.VGA and E!FNT252.VGA. You may use this program
  19.       to load fonts you already own. You may also use these font files with
  20.       other font loaders.
  21.  
  22.           ┌──────┐
  23.           │SYNTAX│
  24.           └──────┘
  25.  
  26.            Enter the following command at the DOS prompt :
  27.  
  28.  
  29.            E!FONT  [path]fontname
  30.  
  31.            or
  32.  
  33.            E!FONT without argument.
  34.  
  35.            In the last case, the default ROM BIOS font will be reloaded.
  36.  
  37.            When you load a font the screen is not cleared and the displayed
  38.       data will be displayed with the new font.
  39.  
  40.            Since  E!FONT is not resident you may use it from the E! command
  41.       line.  You may also assign the E!FONT command to a key within E!. See
  42.       E! documentation on the DEFINE command.
  43.  
  44.            Define 357 &@e!font e!fnt251.ega ** Ctrl F8
  45.            Define 358 &@e!font e!fnt252.ega ** Ctrl F9
  46.            Define 359 &@e!font ** Ctrl F10
  47.  
  48.            The  above  lines  in your active profile will reconfigure E! as
  49.       follows (it is assumed E!FONT is in a "reachable" path):
  50.  
  51.            Ctrl F8 will load the e!fnt251.ega font.
  52.            Ctrl F9 will load the e!fnt252.ega font.
  53.            Ctrl F10 will load the ROM BIOS default font.
  54.  
  55.            All this will happen without any change to the screen (blind DOS
  56.       command  -  "@") except the characters will be displayed with the new
  57.       font.
  58.  
  59.       (see profiles and DEFINE command in E! documentation).
  60.  
  61.           ┌────────────────────┐
  62.           │FONT FILES STRUCTURE│
  63.           └────────────────────┘
  64.  
  65.            Font  files structure is very easy to understand. A font file is
  66.       made  up  of 256 bit maps, each one representing a character from the
  67.       IBM extended character set.
  68.  
  69.            Each  matrix  contains  n  lines,  each  line corresponding to a
  70.       byte.  Each  bit  of  this  byte represents a pixel on the screen. If
  71.       the  bit  is  set  to one, the pixel is displayed. So, a character is
  72.       always 8 pixels wide.
  73.  
  74.            Example:
  75.  
  76.            The  first  14  bytes of E!FNT251.EGA are all set to zero : they
  77.       represent  the  null character. Nothing is displayed. Here are the 14
  78.       next bytes representing the ascii character 1 (Ctrl A) :
  79.  
  80.            byte number        value               matrix
  81.  
  82.            byte 14            00h            . . . . . . . .
  83.            byte 15            3Ch            . . █ █ █ █ . .
  84.            byte 16            42h            . █ . . . . █ .
  85.            byte 17            81h            █ . . . . . . █
  86.            byte 18            A5h            █ . █ . . █ . █
  87.            byte 19            81h            █ . . . . . . █
  88.            byte 20            C3h            █ █ . . . . █ █
  89.            byte 22            A5h            █ . █ . . █ . █
  90.            byte 23            99h            █ . . █ █ . . █
  91.            byte 24            42h            . █ . . . . █ .
  92.            byte 25            3Ch            . . █ █ █ █ . .
  93.            byte 26            00h            . . . . . . . .
  94.            byte 27            00h            . . . . . . . .
  95.            byte 28            00h            . . . . . . . .
  96.  
  97.            The  font  file  contains  no  header  and no other information.
  98.       Hence, its size will always be a multiple of 256. The first byte in a
  99.       matrix  represents  the  first  (top)  scan  line  of  the  displayed
  100.       character.
  101.  
  102.            The  user  is  responsible for specifying the number of 8 pixels
  103.       lines  constituing  a character. For example the default ROM BIOS EGA
  104.       font  is  made  up of characters containing 14 lines of 8 pixels. The
  105.       font  file  size will be : 256 x 14 = 3584 bytes. In the EGA 43 lines
  106.       mode  the  matrix  is  8  x  8  pixels.  The  special  35  lines mode
  107.       implemented by E! uses a 10 x 8 matrix. You do not have to explicitly
  108.       load  the 35 lines font : E! will do it for you when you press Ctrl G
  109.       (if the 35LINES command has been set to YES in your active profile).
  110.  
  111.            A  non  25 lines mode font will not be taken into account by DOS
  112.       (unless  you  installed DOS 4.0). E! will only process 25, 43, 50 and
  113.       35 lines fonts.
  114.  
  115.            When  you  load  a font, E!FONT will automatically calculate how
  116.       many  lines  are  displayed for each character. E!FONT will refuse to
  117.       load  a  font  file if its size is not a multiple of 256. If you load
  118.       a file which is not a font file,  results will be VERY surprising.
  119.  
  120.            If  you  want  to  modify  the fonts delivered with E! or if you
  121.       are  courageous  enough  to  design  a new font from scratch, use the
  122.       EDITFONT utility.
  123.  
  124.                           ********************
  125.